﻿using System;
using ENail.Domain.Core;
using Equation.Enterprise.Framework.Domain.Model;

namespace ENail.Domain.Data.Mapping
{
    public class NailSalonMapping : EntityMappingWithTypedId<NailSalon, Int16>
    {
        public NailSalonMapping() : base("NailSalon")
        {
            Property(x => x.Id).HasColumnName("NailSalonId");

            HasMany(x => x.Employees);
            HasMany(x => x.NailServices);
            HasMany(x => x.Categories);
            HasMany(x => x.Registrations);
            HasMany(x => x.Users);
        }
    }
}
